import instance from "@/axios";
//获取列表
export const  studentList = (searchForm)=> instance.post('/student/list',searchForm)

//获取下拉列表
export const  getCourse = ()=> instance.get('/student/getCourse')

//编辑或者新增
export const  saveOrUpdateMessage = (studentForm)=> instance.post('/student/saveOrUpdateMessage',studentForm)

//删除学生
export const  studentDelete = (id)=> instance.delete('/student/studentDelete/'+id)

//批量导入
export const  importStudent = (formData)=> instance.post('/student/import',formData)


// 批量导出   responseType:'arraybuffer'   设置以流的形式响应数据
export const exportStudent = (exportParams)=>instance.post("/student/export/",exportParams,{responseType:'arraybuffer'})
